<template>
	<custom-page title="异常详情" borderBottomColor="transparent" backgroundColor="#F9F9F9">
		<template #content>
			<view class="top-view">
				<view class="title">异常类型：</view>
				<view class="divider"></view>
				<view class="content">{{infoDetail.abnormalTypeDesc}}</view>
				<view class="divider2"></view>
				<view class="title">情况说明：</view>
				<view class="divider"></view>
				<view class="content">{{infoDetail.presentationCondition}}</view>
			</view>
			<view class="center-view">
				<view class="item-view">
					<view>上报时间</view>
					<text>{{infoDetail.createTime}}</text>
				</view>
				<view class="divider2"></view>
				<view class="item-view">
					<view>处理状态</view>
					<text>{{infoDetail.allegeStateDesc}}</text>
				</view>
				<view class="divider2"></view>
				<view class="item-view">
					<view>处理说明</view>
					<text>{{infoDetail.processingResultDescription}}</text>
				</view>
			</view>
		</template>
	</custom-page>
</template>

<script>
	export default {
		data() {
			return {
				id: '',
				infoDetail: {},
			}
		},
		onLoad(val) {
			this.id = val.id
			this.getAbnormalOrderDetail()
		},
		methods: {
			//异常订单详情
			getAbnormalOrderDetail(){
				this.requestCenter.getAbnormalOrderDetail(this.id).then(res => {
					this.infoDetail = res
				})
			}
		}
	}
</script>

<style scoped lang="less">
	.top-view{
		background-color: white;
		display: flex;
		flex-direction: column;
			
		.title{
			font-size: 28rpx;
			color: #021624;
			height: 88rpx;
			line-height: 88rpx;
			padding-left: 32rpx;
			font-weight: 500;
		}
		.content{
			font-size: 28rpx;
			color: #021624;
			line-height: 40rpx;
			padding: 32rpx;
			box-sizing: border-box;
			font-weight: 400;
		}
	}
	.center-view{
		margin-top: 16rpx;
		padding: 0 32rpx;
		box-sizing: border-box;
		background-color: white;
		.item-view{
			height: 88rpx;
			line-height: 88rpx;
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			font-size: 28rpx;
			view{
				color: #585F70;
				margin-right: 64rpx;
			}
			text{
				color: #021624;
			}
		}
	}
	.divider{
		margin: 0 32rpx;
		width: calc(100% - 64rpx);
		height: 1rpx;
		background-color: #F5F5F5;
	}
	.divider2{
		width: 100%;
		height: 1rpx;
		background-color: #F5F5F5;
	}
</style>
